package com.mixpanel.example.hello.activity;

import android.app.Activity;
import android.os.Bundle;

import com.mixpanel.android.mpmetrics.MixpanelAPI;
import com.mixpanel.example.hello.App;
import com.mixpanel.example.hello.R;

/**
 * 组件排序实例demo
 */
public class IndexActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_index);
        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 100; i++) {
                    MixpanelAPI.getInstance(IndexActivity.this, App.MIXPANEL_API_TOKEN).track("IndexActivity..." + System.currentTimeMillis());
                }
            }
        }).start();
    }
}
